From 7ebc72f3f5de24a293db144cd1745cea52c3e717 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Wed, 27 May 2026 20:50:16 +0300 Subject: feat: add website release notes --- website/src/pages/blog/[slug].astro | 88 +++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 website/src/pages/blog/[slug].astro (limited to 'website/src/pages/blog/[slug].astro') diff --git a/website/src/pages/blog/[slug].astro b/website/src/pages/blog/[slug].astro new file mode 100644 index 00000000..10939fd0 --- /dev/null +++ b/website/src/pages/blog/[slug].astro @@ -0,0 +1,88 @@ +--- +import { getCollection, render } from 'astro:content'; +import MarketingLayout from '../../components/MarketingLayout.astro'; + +export async function getStaticPaths() { + const posts = await getCollection('blog'); + return posts + .filter((post) => !post.data.draft) + .map((post) => { + const slug = post.id.replace(/\.(md|mdx)$/i, ''); + return { + params: { slug }, + props: { post, slug }, + }; + }); +} + +const { post, slug } = Astro.props; +const { Content, headings } = await render(post); +const sectionHeadings = headings.filter((heading) => heading.depth === 2); +--- + + +
+
+ + +
+
+ +

{post.data.title}

+

{post.data.description}

+
+
+ +
+
+
+
+ + +
-- cgit v1.2.3